def singletone(cls):
    instance = None
    def wrapper(*args, **kwargs):
        nonlocal instance
        if instance is None:
            instance = cls(*args, **kwargs)
        return instance
    return wrapper
    
from .config import ConfigManager
mconfig = ConfigManager()
REDIS_TASK_LIST_KEY = mconfig.get("redis-key","task_list")
REDIS_RUNNING_TASK_KEY = mconfig.get("redis-key","running_task")
REDIS_STOP_KEY = mconfig.get("redis-key","stop_key")


from .redis_server import * 
redis_client = RedisClient()
